home *** CD-ROM | disk | FTP | other *** search
- # test % substitution on command
- xtAppInitialize -class Program
-
- xmCommand .command managed
- .command commandEnteredCallback {print_command "%value"}
-
- proc print_command {value} {
- puts stdout "Command from calback: $value"
- .command getValues -command c
- puts stdout "Command from getvalues: $c"
- }
-
- . realizeWidget
-
- . mainLoop
-